package com.qyif;


import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@EnableAsync
@SpringBootApplication
@EnableTransactionManagement //开启注解方式的事务管理
@EnableCaching
@EnableScheduling
@Slf4j
@EnableKnife4j
public class QYNetdiskApplication {
//    private static final Logger log = LoggerFactory.getLogger(QYNetdiskApplication.class); // 手动声明

    public static void main(String[] args) {
        SpringApplication.run(QYNetdiskApplication.class, args);
        log.info("启动成功");
    }
}
